home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
cobol
/
compiler
/
cobol500
/
diskio.cob
< prev
next >
Wrap
Text File
|
1989-10-26
|
1KB
|
32 lines
00001 IDENTIFICATION DIVISION.
00002 PROGRAM-ID. TEST PROGRAM.
00004 DATE-WRITTEN. 06/10/89.
00024 ENVIRONMENT DIVISION.
00025 CONFIGURATION SECTION.
00026 SOURCE-COMPUTER. WYSE 386.
00027 OBJECT-COMPUTER. WYSE 386.
00028 INPUT-OUTPUT SECTION.
00030 FILE-CONTROL.
00031 SELECT TEST-FILE.
00032 ASSIGN TO DISK
00033 ACCESS SEQUENTIAL
00034 ORGANIZATION SEQUENTIAL.
00313 DATA DIVISION.
00314 FILE SECTION.
00325 FD TEST-FILE
00326 LABEL RECORDS STANDARD
00327 VALUE OF FILE-ID "TEST.DAT".
00341 01 DT PIC X(40).
00342 WORKING-STORAGE SECTION.
00343 01 END-OF-FILE PIC X VALUE 'F'.
00344 01 NAMES-CONT PIC X VALUE 'Y'.
00345 01 DSP PIC X(80).
00355 PROCEDURE DIVISION.
00360 MAIN-PARA.
00370 OPEN OUTPUT TEST-FILE.
00371 MOVE "TEST DATA " TO DT.
00372 WRITE DT.
00375 MOVE "THIS IS A TEST OF THIS COMPILER" TO DT.
00376 WRITE DT.
00380 CLOSE TEST-FILE .